package com.song.NacosServiceRegistry;

import com.song.transport.RPCRequest;

import java.util.List;
import java.util.Random;

public class RandomLoadBalancer implements LoadBalancer{
    @Override
    public <T> T select(List<T> t, RPCRequest rpcRequest) {
        return t.get(new Random().nextInt(t.size()));
    }
}
